#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main1()
{
    int n, time;
    scanf("%d", &n);
    time = (n / 12) * 4 + 2;
    printf("%d", time);
    return 0;
}